package com.aleaho.cftrack.utils;

/**
 * Created by Administrator on 2017/6/1.
 */

public class Constants {
    public static String BASE_URL = "http://192.168.2.105:8000/";
    public static String API_URL = BASE_URL + "api/";
    //    http://192.168.2.105:8000/api/login/

    //百度鹰眼的服务ID
    public static final int SERVICEID = 125292;


    public static final int SERVER_ERROR_CODE = -100;
    public static final int SERVER_OK_CODE = 100;


    public static final String NOTIFICATION_MESSAGE = "服务正在运行...";
    public static final String NOTIFICATION_NAME = "行程管理";


    public static final String TAG = "CFTrack_1.3";

    public static final int REQUEST_CODE = 1;

    public static final int RESULT_CODE = 1;


    public static final int INIT_GPS_CODE = 2;

    public static final int TRACKER_REQUEST_CODE = 3;
    public static final int TRACKER_RESULT_CODE = 3;

    public static final int DEFAULT_RADIUS_THRESHOLD = 0;


    /**
     * 启动停留时间
     */
    public static final int SPLASH_TIME = 3000;
    /**
     * 最后一次定位信息
     */
    public static final String LAST_LOCATION = "last_location";


    public static final long ACTIVE_TIME = System.currentTimeMillis() / 1000 - 5 * 60;

    public static final int MONITOR_SERVICE_ID = -1001;

    public static final int WAKEUP_SERVICE_ID = -1111;

    /**
     * 保活任务时间间隔(30s)
     */
    public static final int KEEP_ALIVE_INTERVAL = 30;


    /**
     * 签到
     */
    public static final int SIGN_IN = 0;

    /**
     * 签退
     */
    public static final int SIGN_OUT = 1;


}
